#ifndef DISPLAY_BMP_H
#define DISPLAY_BMP_H

#ifdef __cplusplus
extern "C"
{

#include <stdio.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <stdlib.h>
#include "font.h"

#endif

#ifdef __cplusplus
}
#endif

class bmp_color_t
{
public:
   unsigned char blue;
   unsigned char green;
   unsigned char red;
};


class Display_bmp
{

public:
    Display_bmp();
    int display_picture_for_bmp_format(int start_x, int start_y, const char *pic_name, float mul);
    void display_point_to_screen(int x, int y, int color, unsigned int *fb_addr);
    void displayfont(int x,int y,char* info,int width,int red,int green,int blue);
    ~Display_bmp();

protected:
    int led_fd;
    unsigned int* fb_addr;
    font *f;
    bitmap *Sketchpad;//画板

  
   
};








#endif
